<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_course.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_course.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_course',
                    name: 'T_course',
                    url: "/T_course/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_appointment_duration":"","c_teaching_duration":"","c_summary":"","c_special_instruction":"","c_school_summary":"","c_registration_start_time":"","c_registration_number":"","c_registration_dead_line":"","c_name":"","c_is_only_coach":"","c_is_coach_confirm":"","c_teaching_population":"","c_id":"","c_disclaimer":"","c_disabled":"","c_date_type":"","c_customer_info":"","c_create_time":"","c_content":"","c_common_problem":"","c_code":"","c_category_id":"","c_appointment_type":"","c_gates":"","c_type":""},
                editFormOptions: [[{"title":"c_appointment_duration","field":"c_appointment_duration","type":"text"},
                               {"title":"教学时长","field":"c_teaching_duration","type":"datetime"},
                               {"title":"c_summary","field":"c_summary","type":"text"}],
                              [{"title":"c_special_instruction","field":"c_special_instruction","type":"text"},
                               {"title":"c_school_summary","field":"c_school_summary","type":"text"},
                               {"title":"c_registration_start_time","field":"c_registration_start_time","type":"text"}],
                              [{"title":"c_registration_number","field":"c_registration_number","type":"text"},
                               {"title":"c_registration_dead_line","field":"c_registration_dead_line","type":"text"},
                               {"title":"c_name","field":"c_name","type":"text"}],
                              [{"title":"c_is_only_coach","field":"c_is_only_coach","type":"text"},
                               {"title":"c_is_coach_confirm","field":"c_is_coach_confirm","type":"text"},
                               {"title":"c_teaching_population","field":"c_teaching_population","type":"text"}],
                              [{"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_disclaimer","field":"c_disclaimer","type":"text"},
                               {"title":"c_disabled","field":"c_disabled","type":"text"}],
                              [{"title":"c_date_type","field":"c_date_type","type":"text"},
                               {"title":"\t c_customer_info","field":"c_customer_info","type":"text"},
                               {"title":"创建时间","field":"c_create_time","disabled":true,"type":"datetime"}],
                              [{"title":"c_content","field":"c_content","type":"text"},
                               {"title":"c_common_problem","field":"c_common_problem","type":"text"},
                               {"title":"c_code","field":"c_code","type":"text"}],
                              [{"title":"c_category_id","field":"c_category_id","type":"text"},
                               {"title":"\t c_appointment_type","field":"c_appointment_type","type":"text"},
                               {"title":"c_gates","field":"c_gates","type":"text"}],
                              [{"title":"c_type","field":"c_type","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_appointment_duration',title:'c_appointment_duration',type:'int',width:120,align:'left',sortable:true},
                       {field:'c_teaching_duration',title:'教学时长',type:'decimal',width:120,align:'left'},
                       {field:'c_summary',title:'c_summary',type:'string',width:120,align:'left'},
                       {field:'c_special_instruction',title:'c_special_instruction',type:'string',width:120,align:'left'},
                       {field:'c_school_summary',title:'c_school_summary',type:'string',width:120,align:'left'},
                       {field:'c_registration_start_time',title:'c_registration_start_time',type:'bigint',width:120,align:'left'},
                       {field:'c_registration_number',title:'c_registration_number',type:'int',width:120,align:'left'},
                       {field:'c_registration_dead_line',title:'c_registration_dead_line',type:'bigint',width:120,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_is_only_coach',title:'c_is_only_coach',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_coach_confirm',title:'c_is_coach_confirm',type:'sbyte',width:120,align:'left'},
                       {field:'c_teaching_population',title:'c_teaching_population',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_disclaimer',title:'c_disclaimer',type:'string',width:120,align:'left'},
                       {field:'c_disabled',title:'c_disabled',type:'sbyte',width:120,align:'left'},
                       {field:'c_date_type',title:'c_date_type',type:'string',width:120,align:'left'},
                       {field:'c_customer_info',title:'	 c_customer_info',type:'int',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_content',title:'c_content',type:'string',width:120,align:'left'},
                       {field:'c_common_problem',title:'c_common_problem',type:'string',width:120,align:'left'},
                       {field:'c_code',title:'c_code',type:'string',width:120,align:'left'},
                       {field:'c_category_id',title:'c_category_id',type:'string',width:120,align:'left'},
                       {field:'c_appointment_type',title:'	 c_appointment_type',type:'int',width:120,align:'left'},
                       {field:'c_gates',title:'c_gates',type:'string',width:120,align:'left'},
                       {field:'c_type',title:'c_type',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
